#include<stdio.h>
int main()
{
	int n = 0;
	char jug = ' ';
	int Isin = 0;
	int ret = 0;
	while (jug == ' ' || jug == '\n')
	{
		Isin = scanf("%d", &n);
		jug = getchar();
		ret++;
	}
	printf("%d", ret - (Isin ? 0 : 1));
	return 0;
}
